﻿using Vega.USiteBuilder;

namespace Lu.Blog.Domain.Model.DocumentType
{
    [DocumentType(Name = "Category", IconUrl = "package.png", AllowedChildNodeTypes = new[] {typeof (ContentPage)})]
    public class Category : BaseNavigation
    {
        public Category()
        {
        }

        public Category(int nodeId) : base(nodeId)
        {
        }

        [DocumentTypeProperty(UmbracoPropertyType.Textstring, Name = "Category title",
            Description = "The category displayed text", Tab = "Common informations")]
        public string Label { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.RichtextEditor, Name = "Category description", Tab = "Common informations")]
        public string Description { get; set; }
    }
}